<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:confirmDialog widgetVar="exclusaoReceita" 
                         showEffect="fade" 
                         hideEffect="fade"
                         header="Dejesa excluir?"
                         message="Deseja realmente excluir esse registro?"
                         appendTo="@(body)" >  

            <h:form id="formExclusaoReceita" >

                <p:commandButton value="Sim"    
                                 styleClass="ui-confirmdialog-yes" 
                                 icon="ui-icon-check" 
                                 actionListener="#{receitaBean.delete(event)}" 
                                 update=":formReceitas:dtReceitas"
                                 oncomplete="exclusaoReceita.hide()" />

                <p:commandButton value="Não" 
                                 type="button" 
                                 styleClass="ui-confirmdialog-no" 
                                 icon="ui-icon-close"  
                                 onclick="exclusaoReceita.hide()" /> 

            </h:form>

        </p:confirmDialog>

    </ui:composition>

</html>


